package com.example.yunJie.digitalSentry.service.impl;

import com.example.yunJie.digitalSentry.entity.ApproveEntity;
import com.example.yunJie.digitalSentry.mapper.one.ApproveMapper;
import com.example.yunJie.digitalSentry.service.ApproveService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
@RequiredArgsConstructor
public class ApproveServiceImpl implements ApproveService {

    private final ApproveMapper approveMapper;

    @Override
    public int insert(ApproveEntity approveEntity) {
        return approveMapper.insert(approveEntity);
    }

    @Override
    public int update(ApproveEntity approveEntity) {
        return approveMapper.update(approveEntity);
    }

    @Override
    public int deleteById(String id) {
        return approveMapper.deleteById(id);
    }

    @Override
    public int deleteIdList(List<Integer> idList) {
        return deleteIdList(idList);
    }

    @Override
    public ApproveEntity findId(String id) {
        return approveMapper.findId(id);
    }

    @Override
    public List<ApproveEntity> findAll(ApproveEntity approveEntity) {
        return approveMapper.findAll(approveEntity);
    }
}
